package com.cmbc.xiaodu.news;

import com.baidu.dueros.bot.BaseBot;
import com.baidu.dueros.certificate.Certificate;
import com.baidu.dueros.data.request.IntentRequest;
import com.baidu.dueros.data.request.LaunchRequest;
import com.baidu.dueros.data.request.SessionEndedRequest;
import com.baidu.dueros.model.Request;
import com.baidu.dueros.model.Response;
import com.fasterxml.jackson.databind.JsonMappingException;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

public class NewsBot extends BaseBot {
    @Override
    protected Response onLaunch(LaunchRequest launchRequest) {
        return new Response();

    }

    /**
     * 重写onInent方法，处理onInent对话事件
     *
     * @param intentRequest
     *            IntentRequest请求体
     * @see com.baidu.dueros.bot.BaseBot#onInent(com.baidu.dueros.data.request.IntentRequest)
     */
    @Override
    protected Response onInent(IntentRequest intentRequest) {
        return null;
    }

    /**
     * 重写onSessionEnded事件，处理onSessionEnded对话事件
     *
     * @param sessionEndedRequest
     *            SessionEndedRequest请求体
     * @see com.baidu.dueros.bot.BaseBot#onSessionEnded(com.baidu.dueros.data.request.SessionEndedRequest)
     */
    @Override
    protected Response onSessionEnded(SessionEndedRequest sessionEndedRequest) {
        return new Response();
    }





    protected NewsBot(Request request) throws IOException {
        super(request);
    }

    protected NewsBot(String request) throws IOException, JsonMappingException {
        super(request);
    }

    protected NewsBot(Certificate certificate) throws IOException {
        super(certificate);
    }

    protected NewsBot(HttpServletRequest request) throws IOException, JsonMappingException {
        super(request);
    }
}
